<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 150px;
            height: 200px;
            background-color: #d87093;
            /* 没有空隙
               float:left;*/
            /*有空隙*/
            display: flex;
        }

        #d1{
            float:left;
        }

        #d2{
            float:right;
        }

    </style>
</head>
<body>
<div id = "d1">1</div>
<div id = "d2">2</div>
<!--<div>3</div>-->
</body>
</html>
